#include "glare.gles2.ShaderResourceView.h"
#include "glare.gles2.GpuResourceFactory.h"
#include "Glare.gles2.Driver.h"
#include "Glare.gles2.FormatMapping.h"

namespace Glare {

	GLES2ShaderResourceView::GLES2ShaderResourceView(GLES2GpuResourceFactory* factory, GLES2GpuResourceInterface* resource_interface, const ShaderResourceViewDescription& description)
		: ShaderResourceView(description)
		, _factory(factory)
		, _resource_interface(resource_interface)
	{
		//GLES2Driver* gles2_rs = static_cast<GLES2Driver*>(factory->GetDriver());
	}

	GLES2ShaderResourceView::~GLES2ShaderResourceView()
	{
	}

	GpuResourceFactory* GLES2ShaderResourceView::GetFactory() const
	{
		return _factory;
	}

	GLES2GpuResourceFactory* GLES2ShaderResourceView::GetGLES2Factory() const
	{
		return _factory;
	}

	GLES2GpuResourceInterface* GLES2ShaderResourceView::GetGLES2GpuResourceInterface() const
	{
		return _resource_interface;
	}
}
